package com.waters321.rock.orm.entity.frame.base;

import com.waters321.rock.orm.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "支撑库基础模型")
public class FrameBaseEntity<T extends FrameBaseEntity<T>> extends BaseEntity<Integer, T> {

  private static final long serialVersionUID = 836026344491161548L;

  public static final String FIELD_SCOPE = "scope";

  public static final String FIELD_COMPANY_ID = "company_id";

  @ApiModelProperty(value = "数据级别")
  protected Byte scope;

  @ApiModelProperty(value = "租户编号")
  protected Integer companyId;

}
